package com.kalix.mooc.reply.entities;

import com.kalix.framework.core.api.persistence.PersistentEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 功能描述:
 *
 * @Description: 留言实体类
 * @Author: yyp
 * @CreateDate: 2019/5/28$ 15:29$
 * @Version:
 */
@Entity
@Table(name = "mooc_message")
public class MessageBean extends PersistentEntity {
    private long uid; // 用户
    private String userName; // 用户姓名
    private long cid; // 课程id
    private String cname; // 课程名称
    @Column(name = "content", columnDefinition = "text")
    private String content;  // 评论内容
    private long score;    // 评分

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public long getCid() {
        return cid;
    }

    public void setCid(long cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getScore() {
        return score;
    }

    public void setScore(long score) {
        this.score = score;
    }
}
